<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="security"
	uri="http://www.springframework.org/security/tags"%>
	<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<style>
<!--
#topbar {
    background-image: url("images/topbar.png") !important;
}
#topbar {
    background: url("") repeat-x scroll 0 -6px transparent;
    color: #666666;
    font: 12px/2 Arial,Tahoma,"宋体";
    height: 27px;
    width: 100%;
}
#topbar ul, #topbar p, #topbar input {
    margin: 0;
    padding: 0;
}
#topbar li {
    list-style: none outside none;
}
#topbar a {
    color: #0000CC;
    cursor: pointer;
    text-decoration: none;
}
#topbar a:hover {
    color: #FF0000;
    text-decoration: underline;
}
#topbar input {
    font-family: Tahoma;
    font-size: 12px;
}
#topbar .w, #topbar .warp {
    clear: both;
    line-height: 27px;
    margin: 0 auto;
    width: 1000px;
}
#topbar a {
    color: #666666;
}
.bar_left {
    float: left;
    height: 27px;
    overflow: hidden;
    padding-left: 10px;
    word-spacing: 1px;
}
.bar_right {
    float: right;
}
.bar_left h2 {
    color: #FF0000;
    display: inline;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    padding: 0;
}


-->
</style>
<%--
<center>
	<form method=get action="http://www.google.com/search" target="_blank">
	<table bgcolor="" style="width:auto;">
		<tr>
			<td style="border:0;"> <a href="http://www.google.com/intl/zh-CN/"> <img
					src="http://www.google.com/logos/Logo_40wht.gif" border="0"
					alt="Google" align="absmiddle">
			</a> 
			<input type="hidden" value="zh-CN" name="hl">
			<input type="hidden" value="hp" name="source">
			<input type="hidden" name="biw">
			<input type="hidden" name="bih">
			<input type="hidden" value="UTF-8" name="ie">
			<input type="hidden" value="UTF-8" name="oe">
			<input size="46" value="" title="Google 搜索" class="lst" name="q" maxlength="2048" autocomplete="off" spellcheck="false" dir="ltr">
			<input type="submit" onclick="this.checked=1" class="lsb" value="Google 搜索" name="btnG">
		</tr>
	</table>
	</form>
</center>
 --%>
 
 <%--
<div style="height: 20px; border: 1px solid #eee; margin: 10px 0;">
	UserName:
	<security:authentication property="name" />
	&nbsp;&nbsp; Authorities:
	<security:authentication property="authorities" />
</div>
 --%>
 <c:set var="username" value='<security:authentication property="name" />'></c:set>
 ${username }
<div id="topbar">
	<div class="w pos">
		<div class="bar_left">
			<h2>上海</h2>
			<span id="ipconfig">[<a target="_self"
				href="/lemon/home.tiles?style=red">切换样式</a>]
		</div>
		<div class="bar_right">
			<div id="login">
				<a class="loginIcon" target="_self" href="/lemon/login.jsp">登录</a>
					<span class="gap">|</span>
				<a target="_self" href="/lemon/home.tiles">首页</a>
				<span class="gap">|</span>
				<a target="_self" href="/lemon/j_security_logout">退出</a>
			</div>
		</div>
	</div>
</div>
<!-- Search Google -->
<div id="loginUserName" style="float:left;" class="hidden"><security:authentication property="name" /></div>
<script type="text/javascript">
<!--
$(function(){
	var userName = $('#loginUserName').html();
	if(userName != 'anonymousUser'){
		$('.loginIcon').replaceWith('<span>'+ userName +'</span>');
	}
});
//-->
</script>



